package com.beidouapp.dao.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.beidouapp.mapper.AuditLogMapper;
import com.beidouapp.domain.example.AuditLogExample;
import com.beidouapp.domain.pojo.AuditLog;
import com.beidouapp.dao.AuditLogManager;

@Repository
public class AuditLogManagerImpl implements AuditLogManager
{
	@Autowired
	private AuditLogMapper auditLogMapper;
	
	@Override
	public int countByExample(Map<String, Object> params)
	{
		return auditLogMapper.countByExample(params);
	}

	@Override
	public int insert(AuditLog record)
	{
		return auditLogMapper.insert(record);
	}

	@Override
	public int insertSelective(AuditLog record)
	{
		return auditLogMapper.insertSelective(record);
	}

	@Override
	public List<AuditLog> selectByExample(Map<String, Object> params, int offset, int limit)
	{
		return auditLogMapper.selectByExample(params, new RowBounds(offset, limit));
	}

	@Override
	public AuditLog selectByPrimaryKey(Long id)
	{
		return auditLogMapper.selectByPrimaryKey(id);
	}

}
